<%@ page import="weaver.general.*" %>
<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%
    String bm = Util.null2String(request.getParameter("bm"));//部门
    String str = "";
    String flag = "";
    String sfxtlotid="";
    bb.writeLog("部门=" + bm);
    String sql = " select id,bm,sfxtlotid from  uf_bcbmlotid  where bm='" + bm + "'";
    bb.writeLog(sql);
    rs.executeQuery(sql);
    if (rs.next()) {
        sfxtlotid = Util.null2String(rs.getString("sfxtlotid"));
        flag = "Y";
    } else {
        flag = "N";
    }
    str = "{\"flag\":\"" + flag + "\",\"sfxtlotid\":\"" + sfxtlotid + "\"}";
    out.print(str);
%>